Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trait obligations for where clauses when calling functions/methods #1496

Merged
merged 2 commits into from Jul 6, 2019

Conversation

flodiebold
Copy link
Member

E.g. if we call foo<T: Into<u32>>(x), that adds an obligation that x: Into<u32>, etc., which sometimes allows type inference to make further progress.

E.g. if we call `foo<T: Into<u32>>(x)`, that adds an obligation that `x:
Into<u32>`, etc.
@flodiebold flodiebold requested a review from matklad July 6, 2019 16:18
@matklad
Copy link
Member

matklad commented Jul 6, 2019

bors r+

bors bot added a commit that referenced this pull request Jul 6, 2019
1496: Add trait obligations for where clauses when calling functions/methods r=matklad a=flodiebold

E.g. if we call `foo<T: Into<u32>>(x)`, that adds an obligation that `x: Into<u32>`, etc., which sometimes allows type inference to make further progress.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
@bors
Copy link
Contributor

bors bot commented Jul 6, 2019

Build succeeded

@bors bors bot merged commit f854a29 into rust-lang:master Jul 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants